#coding:utf-8
from functools import wraps
#检查权限
def check_qx(fn):
    @wraps(fn)
    def BtnPrv(*args, **kw):
        print fn.__name__
        ret = db.read('select * from role')
        print(list(ret))
        return fn(*args, **kw)
    return BtnPrv